package com.quick.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.quick.common.annotation.Excel;
import com.quick.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 登录日志对象 sys_login_info
 *
 * @Author: 吃素不吃肉
 * @Date: Tue Jul 25 14:29:19 CST 2023
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "登录日志")
public class SysLoginInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 访问ID */
    @ApiModelProperty(value = "访问ID")
    private Long infoId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    @ApiModelProperty(value = "用户账号")
    private String userName;

    /** 登录IP地址 */
    @Excel(name = "登录IP地址")
    @ApiModelProperty(value = "登录IP地址")
    private String ipaddr;

    /** 登录地点 */
    @Excel(name = "登录地点")
    @ApiModelProperty(value = "登录地点")
    private String loginLocation;

    /** 浏览器类型 */
    @Excel(name = "浏览器类型")
    @ApiModelProperty(value = "浏览器类型")
    private String browser;

    /** 操作系统 */
    @Excel(name = "操作系统")
    @ApiModelProperty(value = "操作系统")
    private String os;

    /** 登录状态（0成功 1失败） */
    @Excel(name = "登录状态", readConverterExp = "0=成功,1=失败")
    @ApiModelProperty(value = "登录状态（0成功 1失败）")
    private String status;

    /** 提示消息 */
    @Excel(name = "提示消息")
    @ApiModelProperty(value = "提示消息")
    private String msg;

    /** 访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty(value = "访问时间")
    private Date loginTime;

}
